#ifndef __MAINWINDOW_H__
#define __MAINWINDOW_H__

#include <QMainWindow>

#include "input.h"

#include <boost/shared_ptr.hpp>

class QDockWidget;
class QMenuBar;

namespace Ui {

class Render;
class Panel;

class MainWindow : public QMainWindow {
	Q_OBJECT

public:
	MainWindow(QWidget* _parent = 0);
	~MainWindow(void);

public slots:
	void points_visualization_changed(int value);
	void convex_hull_visualization_changed(int value);
	void viewport_changed(int value);

	void open_file(void);
private:
	Render* render;
	Panel* panel;
	boost::shared_ptr<Tujchi::Input> input;

	QDockWidget* panel_dock;
	QMenuBar* menubar;

private slots:
	void calculate(void);
};

}

#endif // MAINWINDOW_H

